package com.hk.sync.address.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

@ConfigurationProperties(prefix = "nodes-list")
@Configuration
@Component
public class NodeList {
    private ArrayList<Node> nodes;

    public NodeList(ArrayList<Node> nodes) {
        this.nodes = nodes;
    }
    public NodeList(){}

    public ArrayList<Node> getNodes() {
        return nodes;
    }

    public void setNodes(ArrayList<Node> nodes) {
        this.nodes = nodes;
    }

}
